﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database.Models
{
    [Table("NhomHanhVi")]
    public class NhomHanhVi:BaseModel
    {
        public NhomHanhVi()
        {
            XuLyViPhams = new HashSet<XuLyViPham>();
        }

        public int Id { get; set; }

        [Required]
        [MaxLength(255)]
        public string Ten { get; set; }

        public ICollection<XuLyViPham> XuLyViPhams { get; set; }
    }
}
